package com.cxs.controller.admin;

import com.cxs.base.BaseResult;
import com.cxs.vo.admin.monitor.Server;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务器监控
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/admin/monitor")
public class AdminServerController
{
    @GetMapping("/server")
    public BaseResult getInfo() throws Exception
    {
        Server server = new Server();
        server.copyTo();
        return BaseResult.ok().setData(server);
    }
}
